<h1>学员缴费</h1>

<% form_tag :action => 'pay',:id=> @student do %>
  <%= hidden_field :fee,:student_id, {:value => @student.id } %>
  <%= hidden_field :fee, :paytype, {:value => '1' } %>
  <div>
    <%= label :student, :name, "学员姓名" %>
    <br/>
    <%= text_field :student, :name, {:value=> @student.name,:readonly => true } %>
  </div>
  <div>
    <%= label :fee, :course_id, "课程名称" %>
    <br/>
    <%= select :fee, :course_id, @courses  %>
  </div>
  <div>
    <%= label :fee, :amount, "课时次数" %>
    <br/>
    <%= text_field :fee, :amount %>
  </div>
  <div>
    <%= label :fee, :fee, "金额" %>
    <br/>
    <%= text_field :fee, :fee %>
  </div>
  <div>
    <%= label :fee, "描述"%>
    <br/>
    <%= text_area :fee, :description %>
  </div>
  <div>
    <%= label :fee, '备注'%>
    <br/>
    <%= text_area :fee, :comment %>
  </div>
  
  <%= submit_tag "确定" %>
<% end %>
